﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ERP.Framework.Components.Testing.SerializationHelper.Test
{
    [System.Serializable]
    [System.Runtime.Serialization.DataContract]
    public class SerializingTestObject
    {
        public SerializingTestObject()
        {
            m_RandomNumber = (new System.Random()).Next(10, 100);
            m_ID = Guid.NewGuid().ToString();
            m_Name = "Name :: " + Guid.NewGuid().ToString();
            m_TestList = new ArrayList();
        }

        public SerializingTestObject(string name) : this()
        {
            m_Name = name;
        }

        private string m_ID = string.Empty;
        private string m_Name = string.Empty;
        private int m_RandomNumber = -1;
        private ArrayList m_TestList = null;


        public int RandomNumber
        {
            get
            {
                return m_RandomNumber;
            }

            set
            {
                m_RandomNumber = value;
            }
        }

        public string ID
        {
            get
            {
                return m_ID;
            }

            set
            {
                m_ID = value;
            }
        }

        public string Name
        {
            get
            {
                return m_Name;
            }

            set
            {
                m_Name = value;
            }
        }

        public ArrayList TestList
        {
            get
            {
                return m_TestList;
            }

            set
            {
                m_TestList = value;
            }
        }
    }
}
